const NAV_ITEM_CONTAINER='#navbar .nav-main';
const PAGE_CONTAINER='#content';

var optionPages={
	'theme-settings':{
		'title'			: 'Theme Settings',
		'navTitle'		: 'Demo Theme Settings',
		'options'		: [
			{'id':'theme.quicknav','title':'Quick Navigation Bar',type:'checkbox','enum':{
				'theme.quicknav':'Enable Quick Navigation'
			}}
			,{'id':'general.onstartup2','title':'On Startup',type:'select','enum':{'0':'Open the home page','1':'Reopen the pages that were open last'}}
			,{'id':'general.onstartup3','title':'On Startup',type:'radio','enum':{'0':'Open the home page','1':'Reopen the pages that were open last'}}
			,{'id':'general.onstartup4','title':'On Startup',type:'select','enum':{'0':'Open the home page','1':'Reopen the pages that were open last'}}
		]
	}
	,'script-settings':{
		'title'			: 'JavaScript Interactivity Settings',
		'navTitle'		: 'Demo Script Settings',
		'options'		: [
			{'id':'general.onstartup','title':'On Startup',type:'select','enum':{'0':'Open the home page','1':'Reopen the pages that were open last'}}
			,{'id':'general.onstartup2','title':'On Startup',type:'radio','enum':{'0':'Open the home page','1':'Reopen the pages that were open last'}}
			,{'id':'general.onstartup3','title':'On Startup',type:'select','enum':{'0':'Open the home page','1':'Reopen the pages that were open last'}}
			,{'id':'general.onstartup4','title':'Privacy',type:'checkbox','enum':{
				'web.service':'Use a web service to help resolve navigation errors'
				,'web.autocomplete':'Use a prediction service to help complete searches and URLs typed in the address bar'
				,'web.auto.network':'Predict network actions to improve page load performance'
			}}
		]
	}
	,'dev-settings':{
		'title'			: 'Developer Settings',
		'navTitle'		: 'Demo Developer Settings',
		'options'		: [
			{'bucket':'dev.nosql.demo','title':'Nosql key-value set',type:'nosql',addButtonTitle:'Add New key/value pair'}
		]
	}
};


$(document).ready(function(){
	var optionApp=new t_optionApp(optionPages);
	optionApp.init();
});